From: Ray Strode Date: Wed, 7 Jun 2017 19:00:11 +0000 (-0400) Subject: gdmUtil: Fix auth prompt drawing over user list X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~293 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=875a1d61595a90cd62d5d7798f47caa32d297ab4;p=gnome-shell.git gdmUtil: Fix auth prompt drawing over user list If the user fails to enter their password then hits escape, we jump back to the user list, then ask again for a password in a garbled screen. this commit fixes that by guarding against the retry if the fail counter is reset. --- diff --git a/js/gdm/util.js b/js/gdm/util.js index 6876cbef9..03fd344ef 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -540,7 +540,8 @@ const ShellUserVerifier = new Lang.Class({ let signalId = this.connect('no-more-messages', Lang.bind(this, function() { this.disconnect(signalId); - this._retry(); + if (this._failCounter != 0) + this._retry(); })); } } else {